package org.utils.ui;

public class NumericTextField extends SizedTextField
{
	private static final long serialVersionUID = 8297731577914484532L;

	public NumericTextField(int Number)
    {
        super(Number);
    }
  
    public void replaceSelection(String strText)
    {
	char strArray[] = strText.toCharArray();
	for (int i = 0 ; i < strArray.length; i++)
	   if (!(strArray[i] >= '0' && strArray[i] <= '9'))
	   {
	      getToolkit().beep();
              return;
           }
        super.replaceSelection(strText);
    }
} 
// End of class
